package siga.modelo;

import java.io.*;

public class LoginAtivo {
	public void setLoginAtivo(String dre){
		try {
			FileWriter fw = new FileWriter("login.txt");
			BufferedWriter bw = new BufferedWriter(fw);
			bw.write(dre);
			bw.flush();
			bw.close();
			fw.close();
		} catch (IOException e) {}
	}
	public String getLogin(){
		String dre = null;
		try {
			FileReader fr = new FileReader("login.txt");
			BufferedReader br = new BufferedReader(fr);
			dre = br.readLine();
			br.close();
			fr.close();
		} catch (IOException e) {}
		return dre;
	}
}
